<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" errorPage="/pages/error.jsp"%>
	<jsp:useBean id="usuario" class="app.engine.solucoes.request.beans.Usuario" scope="session" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Login - FaqEngine</title>
</head>
<body>
<%
	if (usuario.getId() != null)
		response.sendRedirect("/faqtool");
%>
	<form name="menu" action="faqtool" method="post">
		<input type="hidden" name="cmd" value="">
		<input type="hidden" name="token" value="<%= request.getAttribute("token") %>">
		<table border="1" align="center">
			<tr>
				<td>
				<table bgcolor="tan" border="0" align="center" cellpadding="10"
					cellspacing="0">
					<tr>
						<th colspan="2">FAQ - Frequently Asked Questions</th>
					</tr>
					<tr>
						<td><b>Login:</b></td>
						<td><input type="text" name="login" size="35" value="<%=usuario.getLogin() == null ? "" : usuario.getLogin()%>"></td>
					</tr>
					<tr>
						<td><b>Senha:</b></td>
						<td><input type="password" name="senha" size="35" value=""></td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<input type="submit" value="Entrar" onClick="document.menu.cmd.value='login';" />
						</td>
						<!--
						<td>
							<input type="submit" value="Exec Serv" onClick="document.menu.cmd.value='sim';" />
						</td>
						-->
					</tr>
						<% if (request.getAttribute("faqtool.msg") != null) { %>
							<tr>
								<td colspan="2" bgcolor="white">
									<font size="-1" color="<%=request.getAttribute("corFonte") != null ? request.getAttribute("corFonte") : "black"%>">
										<i><%=request.getAttribute("faqtool.msg")%></i>
									</font>
								</td>
							</tr>
						<%} %>
				</table>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>